package com.zhucezmf.activemqtestdemo.comsumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Comsumer {

    @JmsListener(destination = "zhucezmf.mq.test.queue3")
    public void processMessage(String content) {

        System.out.println("receive message  " + content);
        // ...
    }

    @JmsListener(destination = "test-topic")
    public void sprocessMessage2(String content) {
        System.out.println("receive zhucezmf.test.topic message  " + content);

    }
}
